import request from '@/utils/request'

export default {
	
	//添加小节
	addVideo(video) {
		return request({
			url: `/edu/content/video`,
			method: 'post',
			data:video
		})
	},
	//删除小节
	deleteVideo(videoId) {
		return request({
			url: `/edu/content/video/${videoId}`,
			method: 'delete'
		})
	},
	//更新小节
	updateVideo(video) {
		return request({
			url: `/edu/content/video`,
			method: 'put',
			data:video
		})
	},
	//获得小节信息
	getVideo(videoId){
		return request({
			url: `/edu/content/video/${videoId}`,
			method: 'get'
		})
	},
	//删除小节
	deleteAliyunVideo(videoSourceId) {
		return request({
			url: `/eduVod/video/${videoSourceId}`,
			method: 'delete'
		})
	}
	
	
	
}